package com.kyubi.tagger;


public class Term implements Comparable<Term> {
	public String value;
	public String tag;
	public long lineNum;
	public long posLine;
	public long freq = 0;
	
	public int compareTo(Term b) {
		if(b.freq > this.freq) {
			return 1;
		} else if(b.freq < this.freq) {
			return -1;
		} else {
			return 0;
		}
	}
	
	public String toString() {
		return value + " " + tag + " " + lineNum + " " + posLine + " " + freq;
	}
}